<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/vue.js"></script>

  <style>
    ul {
      margin: 0;
      padding: 0;
    }

    li {
      list-style-type: none;
      display: inline-block;
      margin-right: 10px;
      padding: 20px;
      background-color: wheat;
    }

    .red {
      background-color: red;
      color: wheat;
    }
  </style>
</head>

<body>

  <div id="app">
    <ul>
      <li v-for="item,index in list" :class="index == select ? 'red' : ''" @click="select=index;imgUrl=item.imgUrl">
        {{item.name}}</li>
    </ul>

    <img width="35%" height="35%" :src="imgUrl" alt="">

  </div>

  <script>
    new Vue({
      el: "#app",
      data: {
        list: [
          {
            name: "one",
            imgUrl: "./img/001.jpg"
          },
          {
            name: "two",
            imgUrl: "./img/002.jpg"
          },
        ],
        imgUrl: "./img/001.jpg",
        select: 0
      },

      methods: {

      }
    })
  </script>

</body>

</html>